#include <cstdio>
using namespace std;

void PrintOneLevel(int, int);

int main()
{
    int num;
    while (scanf(" %d", &num) != EOF) {
        int max_len = 2 * num - 1;
        for (int i = num; i > 0; i--)
            PrintOneLevel(max_len, i);
        for (int i = 2; i < num + 1; i++)
            PrintOneLevel(max_len, i);
    }

    return 0;
}

void PrintOneLevel(int max_len, int star_number)
{
    int side_blank = (max_len - (2 * star_number - 1)) / 2;
    for (int i = 0; i < side_blank; i++) 
        printf(" ");
    for (int i = 0; i < 2 * star_number - 1; i++) {
        if (i % 2 == 0)
            printf("*");
        else 
            printf(" ");
    }
    for (int i = 0; i < side_blank; i++)
        printf(" ");

    printf("\n");
}